NinePatch

Undocumented in source.

Constructors

this
this(uint width, uint height, IHipTexture tex, NinePatchType type)
Undocumented in source.

Members

Functions

build
void build()
Undocumented in source. Be warned that the author may not have intended to support it.
getVertices
HipSpriteVertex[4 * 9] getVertices()
Undocumented in source. Be warned that the author may not have intended to support it.
setBotLeft
void setBotLeft(uint u1, uint v1, uint u2, uint v2)
Undocumented in source. Be warned that the author may not have intended to support it.
setBotMid
void setBotMid(uint u1, uint v1, uint u2, uint v2)
Undocumented in source. Be warned that the author may not have intended to support it.
setBotRight
void setBotRight(uint u1, uint v1, uint u2, uint v2)
Undocumented in source. Be warned that the author may not have intended to support it.
setColor
void setColor(HipColor color)
Undocumented in source. Be warned that the author may not have intended to support it.
setMidLeft
void setMidLeft(uint u1, uint v1, uint u2, uint v2)
Undocumented in source. Be warned that the author may not have intended to support it.
setMidMid
void setMidMid(uint u1, uint v1, uint u2, uint v2)
Undocumented in source. Be warned that the author may not have intended to support it.
setMidRight
void setMidRight(uint u1, uint v1, uint u2, uint v2)
Undocumented in source. Be warned that the author may not have intended to support it.
setPosition
void setPosition(float x, float y)
Undocumented in source. Be warned that the author may not have intended to support it.
setSize
void setSize(int width, int height)
Undocumented in source. Be warned that the author may not have intended to support it.
setTextureRegions
void setTextureRegions(uint x, uint y, uint width, uint height)

The arguments will be divided by the texture width and height for generating the UVs

setTextureRegions
void setTextureRegions()

Cuts the entire image in 9 slices

setTopLeft
void setTopLeft(uint u1, uint v1, uint u2, uint v2)
Undocumented in source. Be warned that the author may not have intended to support it.
setTopMid
void setTopMid(uint u1, uint v1, uint u2, uint v2)
Undocumented in source. Be warned that the author may not have intended to support it.
setTopRight
void setTopRight(uint u1, uint v1, uint u2, uint v2)
Undocumented in source. Be warned that the author may not have intended to support it.
updatePosition
void updatePosition()

Use this function instead of build for less overhead

Variables

height
uint height;
Undocumented in source.
scaleX
float scaleX;
scaleY
float scaleY;
Undocumented in source.
sprites
HipSprite[9] sprites;
Undocumented in source.
stretchStrategy
NinePatchType stretchStrategy;
Undocumented in source.
texture
IHipTexture texture;
Undocumented in source.
vertices
HipSpriteVertex[9 * 4] vertices;
Undocumented in source.
width
uint width;
Undocumented in source.
x
float x;
y
float y;
Undocumented in source.

Meta